package com.feng.project.project01.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.concurrent.TimeUnit;

/**
 * @author Administrator
 */
@Data
@ConfigurationProperties(prefix = "project01.common")
public class CommonProperties {

    /**
     * 缓存过期时间
     */
    private long expireTime = 5;

    /**
     * 缓存过期单位
     */
    private TimeUnit expireTimeUnit = TimeUnit.SECONDS;

    /**
     * swagger扫描包
     */
    private String swaggerBasePackage;
}
